<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>animate动画 | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../First/CSS/媒体查询.html" />
    
    
    <link rel="prev" href="../../First/CSS/SCSS预处理.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.4"
        data-chapter-title="animate动画"
        data-filepath="First/CSS/animate常见用法.md"
        data-basepath="../.."
        data-revision="Fri Sep 01 2017 15:03:43 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="First/HTML/html1.html">
            
                
                    <a href="../../First/HTML/html1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML5
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="First/HTML/example1.html">
            
                
                    <a href="../../First/HTML/example1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        列表之间的同素异性体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="First/HTML/example2.html">
            
                
                    <a href="../../First/HTML/example2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        常用标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="First/HTML/example3.html">
            
                
                    <a href="../../First/HTML/example3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="First/HTML/example4.html">
            
                
                    <a href="../../First/HTML/example4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        HTML5新增加的标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="First/HTML/example5.html">
            
                
                    <a href="../../First/HTML/example5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        实体字符和文本格式化
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="First/HTML/example6.html">
            
                
                    <a href="../../First/HTML/example6.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        table标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="First/HTML/example7.html">
            
                
                    <a href="../../First/HTML/example7.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        form表单与input输入框的运用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="First/HTML/example8.html">
            
                
                    <a href="../../First/HTML/example8.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        块级元素与内联元素的往事
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="First/HTML/example9.html">
            
                
                    <a href="../../First/HTML/example9.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.9.</b>
                        
                        零碎小知识
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="First/HTML/example10.html">
            
                
                    <a href="../../First/HTML/example10.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.10.</b>
                        
                        图像热区与内嵌框架iframe的趣事
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="First/HTML/content.html">
            
                
                    <a href="../../First/HTML/content.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.11.</b>
                        
                        HTML5心得和总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="First/CSS/css1.html">
            
                
                    <a href="../../First/CSS/css1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS3
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="First/CSS/css.html">
            
                
                    <a href="../../First/CSS/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="First/CSS/通配选择器.html">
            
                
                    <a href="../../First/CSS/通配选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        通配选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="First/CSS/元素选择器.html">
            
                
                    <a href="../../First/CSS/元素选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="First/CSS/class选择器和id选择器.html">
            
                
                    <a href="../../First/CSS/class选择器和id选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        class选择器和id选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="First/CSS/关系选择器.html">
            
                
                    <a href="../../First/CSS/关系选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="First/CSS/群组选择器.html">
            
                
                    <a href="../../First/CSS/群组选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        群组选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="First/CSS/伪类选择器.html">
            
                
                    <a href="../../First/CSS/伪类选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="First/CSS/属性选择器.html">
            
                
                    <a href="../../First/CSS/属性选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.7.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="First/CSS/伪对象选择器.html">
            
                
                    <a href="../../First/CSS/伪对象选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.8.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="First/CSS/样式.html">
            
                
                    <a href="../../First/CSS/样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        CSS样式分类
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="First/CSS/字体样式.html">
            
                
                    <a href="../../First/CSS/字体样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        字体样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="First/CSS/边框样式.html">
            
                
                    <a href="../../First/CSS/边框样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        边框样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="First/CSS/背景样式.html">
            
                
                    <a href="../../First/CSS/背景样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        背景样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="First/CSS/元素样式.html">
            
                
                    <a href="../../First/CSS/元素样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        元素样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="First/CSS/段落样式.html">
            
                
                    <a href="../../First/CSS/段落样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        段落样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="First/CSS/浮动.html">
            
                
                    <a href="../../First/CSS/浮动.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.6.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="First/CSS/网页常见定位.html">
            
                
                    <a href="../../First/CSS/网页常见定位.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.7.</b>
                        
                        网页常见定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.8" data-path="First/CSS/盒子模型.html">
            
                
                    <a href="../../First/CSS/盒子模型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.8.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="First/CSS/SCSS预处理.html">
            
                
                    <a href="../../First/CSS/SCSS预处理.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        sass预处理用法
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="2.4" data-path="First/CSS/animate常见用法.html">
            
                
                    <a href="../../First/CSS/animate常见用法.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        animate动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="First/CSS/媒体查询.html">
            
                
                    <a href="../../First/CSS/媒体查询.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        媒体查询
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="First/CSS/Bootstrap框架栅格化系统.html">
            
                
                    <a href="../../First/CSS/Bootstrap框架栅格化系统.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        Bootstrap框架栅格化系统
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="First/CSS/flexbox弹性盒子.html">
            
                
                    <a href="../../First/CSS/flexbox弹性盒子.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        flexbox弹性盒子
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >Introduction</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="animate&#x52A8;&#x753B;cs3&#x65B0;&#x589E;&#x6837;&#x5F0F;">animate&#x52A8;&#x753B;(CS3&#x65B0;&#x589E;&#x6837;&#x5F0F;)</h1>
<h2 id="transform&#x53D8;&#x5F62;&#x5F62;&#x5F0F;&#x52A8;&#x753B;&#x52A8;&#x4F5C;&#x7684;&#x8868;&#x8FBE;&#x8005;">transform&#x53D8;&#x5F62;&#x5F62;&#x5F0F;(&#x52A8;&#x753B;&#x52A8;&#x4F5C;&#x7684;&#x8868;&#x8FBE;&#x8005;)</h2>
<p>&#x6539;&#x53D8;&#x5143;&#x7D20;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x900F;&#x660E;&#xFF0C;&#x65CB;&#x8F6C;&#x89D2;&#x5EA6;&#xFF0C;&#x503E;&#x659C;&#x626D;&#x66F2;&#x5EA6;&#x3002;</p>
<p>&#x53EA;&#x80FD;&#x7528;&#x5728;&#x5757;&#x7EA7;&#x6216;&#x884C;&#x5185;&#x5757;&#x7EA7;&#x5143;&#x7D20;&#x4E4B;&#x4E2D;</p>
<p>&#x5E38;&#x89C1;&#x4EE3;&#x7801;:</p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">transform</span>:<span class="hljs-value">none / &lt;transform-function&gt;
</span></span></code></pre>
<blockquote>
<p>transform-function&#x5C5E;&#x6027;:</p>
<ul>
<li>translate() &#x6307;&#x5B9A;&#x5BF9;&#x8C61;&#x7684;2D&#x5E73;&#x79FB;&#xFF0C;&#x53EF;&#x5206;&#x4E3A;<strong>translateX()&#x548C;translateY(),translate3d()</strong>,&#x5355;&#x72EC;&#x4E3A;X&#x8F74;,Y&#x8F74;&#x5E73;&#x79FB;&#x548C;3dZ&#x8F74;&#x5E73;&#x79FB;</li>
<li>rotate() &#x6307;&#x5B9A;&#x5BF9;&#x8C61;&#x7684;&#x65CB;&#x8F6C;&#xFF0C;&#x53EF;&#x5206;&#x4E3A;<strong>rotateX(),rotateY()&#x548C;rotateZ()</strong>,&#x5373;X&#x8F74;&#xFF0C;Y&#x8F74;,Z&#x8F74;&#x4E3A;&#x4E2D;&#x5FC3;&#x8F74;&#x65CB;&#x8F6C;</li>
<li>scale()  &#x6307;&#x5B9A;&#x5BF9;&#x8C61;&#x7684;2D&#x7F29;&#x653E;(&#x53D6;&#x503C;&#x533A;&#x95F4;0~1)&#xFF0C;&#x53EF;&#x5206;&#x4E3A;<strong>scaleX()&#x548C;scaleY()</strong>,&#x5373;&#x5355;&#x72EC;&#x4E3A;X&#x8F74;&#x6216;Y&#x8F74;&#x8FDB;&#x884C;&#x7F29;&#x653E;</li>
<li>skew() &#x6307;&#x5B9A;&#x5BF9;&#x8C61;&#x7684;&#x503E;&#x659C;&#x89D2;&#x5EA6;,&#x53EF;&#x5206;&#x4E3A;<strong>skewX()&#x548C;skewY()</strong>.</li>
</ul>
</blockquote>
<h2 id="transition&#x8FC7;&#x6E21;&#x52A8;&#x753B;animate&#x52A8;&#x753B;&#x7684;&#x4FEE;&#x9970;&#x8005;">transition&#x8FC7;&#x6E21;&#x52A8;&#x753B;(animate&#x52A8;&#x753B;&#x7684;&#x4FEE;&#x9970;&#x8005;)</h2>
<h4 id="transitionproperty&#x8FC7;&#x6E21;&#x5C5E;&#x6027;">transition-property(&#x8FC7;&#x6E21;&#x5C5E;&#x6027;)</h4>
<p>&#x4E00;&#x822C;&#x8FC7;&#x6E21;&#x5C5E;&#x6027;&#x5199;all,&#x5373;&#x5BF9;&#x6240;&#x6709;&#x7684;&#x6837;&#x5F0F;&#x8FDB;&#x884C;&#x8FC7;&#x6E21;&#x4FEE;&#x9970;&#x3002;</p>
<blockquote>
<p>&#x8FC7;&#x6E21;&#x6548;&#x679C;&#x7684;&#x5F62;&#x6210;&#x6B65;&#x9AA4;:</p>
<ol>
<li>&#x5728;&#x9ED8;&#x8BA4;&#x6837;&#x5F0F;&#x4E2D;&#x58F0;&#x660E;&#x5143;&#x7D20;&#x7684;&#x521D;&#x59CB;&#x72B6;&#x6001;&#x6837;&#x5F0F;&#xFF1B; </li>
<li>&#x58F0;&#x660E;&#x8FC7;&#x6E21;&#x5143;&#x7D20;&#x6700;&#x7EC8;&#x72B6;&#x6001;&#x6837;&#x5F0F;&#xFF0C;&#x6BD4;&#x5982;&#x60AC;&#x6D6E;&#x72B6;&#x6001;&#xFF1B; </li>
<li>&#x5728;&#x9ED8;&#x8BA4;&#x6837;&#x5F0F;&#x4E2D;&#x901A;&#x8FC7;&#x6DFB;&#x52A0;&#x8FC7;&#x6E21;&#x51FD;&#x6570;&#xFF0C;&#x6DFB;&#x52A0;&#x4E00;&#x4E9B;&#x4E0D;&#x540C;&#x7684;&#x6837;&#x5F0F;&#x3002;</li>
</ol>
</blockquote>
<h4 id="transitionduration&#x8FC7;&#x6E21;&#x65F6;&#x95F4;">transition-duration&#x8FC7;&#x6E21;&#x65F6;&#x95F4;</h4>
<p>transition-duration&#x5C5E;&#x6027;&#x4E3B;&#x8981;&#x7528;&#x6765;&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;&#x5C5E;&#x6027;&#x8FC7;&#x6E21;&#x5230;&#x53E6;&#x4E00;&#x4E2A;&#x5C5E;&#x6027;&#x6240;&#x9700;&#x7684;&#x65F6;&#x95F4;&#xFF0C;
&#x4E5F;&#x5C31;&#x662F;&#x4ECE;&#x65E7;&#x5C5E;&#x6027;&#x8FC7;&#x6E21;&#x5230;&#x65B0;&#x5C5E;&#x6027;&#x82B1;&#x8D39;&#x7684;&#x65F6;&#x95F4;&#x957F;&#x5EA6;&#xFF0C;&#x4FD7;&#x79F0;<strong>&#x6301;&#x7EED;&#x65F6;&#x95F4;</strong>&#x3002;</p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">transition-duration</span>:<span class="hljs-value"><span class="hljs-number">3s</span></span></span>;
</code></pre>
<h4 id="transitiontiming">transition-timing</h4>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../First/CSS/SCSS预处理.html" class="navigation navigation-prev " aria-label="Previous page: sass预处理用法"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../First/CSS/媒体查询.html" class="navigation navigation-next " aria-label="Next page: 媒体查询"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters-small":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
